There's no math involved, but it's harder than you think.
